package com.ruoyi.system.domain;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 视频分析-报警事件对象 video_warn_event
 * 
 * @author ruoyi
 * @date 2024-11-07
 */
public class VideoWarnEvent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 事件唯一标识 */
    private String eventId;

    /** 事件源编号，物理设备是资源编号 */
    private String srcIndex;

    /** 事件源类型 */
    private String srcType;

    /** 事件源名称 */
    private String srcName;

    /** 事件类型 */
    private Long eventType;

    /** 事件状态：	0-瞬时; 1-开始; 2-停止; 4-事件联动结果更新; 5-事件图片异步上传 */
    private Integer status;

    /** 事件等级：0-未配置; 1-低; 2-中; 3-高; 配置了事件联动，才返回这个字段 */
    private Integer eventLvl;

    /** 脉冲超时时间(单位：秒) */
    private Long timeout;

    /** 事件发生时间（设备时间） */
    private String happenTime;

    /** 事件发生的事件源父设备编码 */
    private String srcParentIndex;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 事件类别 **/
    private String ability;

    private JSONObject data;

    public String getAbility() {
        return ability;
    }

    public void setAbility(String ability) {
        this.ability = ability;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEventId(String eventId) 
    {
        this.eventId = eventId;
    }

    public String getEventId() 
    {
        return eventId;
    }
    public void setSrcIndex(String srcIndex) 
    {
        this.srcIndex = srcIndex;
    }

    public String getSrcIndex() 
    {
        return srcIndex;
    }
    public void setSrcType(String srcType) 
    {
        this.srcType = srcType;
    }

    public String getSrcType() 
    {
        return srcType;
    }
    public void setSrcName(String srcName) 
    {
        this.srcName = srcName;
    }

    public String getSrcName() 
    {
        return srcName;
    }

    public void setEventLvl(Integer eventLvl) 
    {
        this.eventLvl = eventLvl;
    }

    public Integer getEventLvl() 
    {
        return eventLvl;
    }
    public void setTimeout(Long timeout) 
    {
        this.timeout = timeout;
    }

    public Long getTimeout() 
    {
        return timeout;
    }
    public void setHappenTime(String happenTime) 
    {
        this.happenTime = happenTime;
    }

    public String getHappenTime() 
    {
        return happenTime;
    }
    public void setSrcParentIndex(String srcParentIndex) 
    {
        this.srcParentIndex = srcParentIndex;
    }

    public String getSrcParentIndex() 
    {
        return srcParentIndex;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Long getEventType() {
        return eventType;
    }

    public void setEventType(Long eventType) {
        this.eventType = eventType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("eventId", getEventId())
            .append("srcIndex", getSrcIndex())
            .append("srcType", getSrcType())
            .append("srcName", getSrcName())
            .append("eventType", getEventType())
            .append("status", getStatus())
            .append("eventLvl", getEventLvl())
            .append("timeout", getTimeout())
            .append("happenTime", getHappenTime())
            .append("srcParentIndex", getSrcParentIndex())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
